package review;

public class Student {
    //javaBean类
    //{成员变量  成员方法  构造方法 ...diy }
    //成员变量 (属性)
    //姓名 年龄 性别
     private String name;
     private int age;
     private String gender;
//每一个属性的方法
    //构造方法
//jvm
//    public  Student(){
//
//    }
    public Student(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public Student() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

}
